package com.ls.service;

import com.ls.model.Department;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

@FeignClient("001-SPRINGCLOUD-SERVICE-GOODS")
public interface DeptRemoteClient {

    @GetMapping("/service/depts")
    public List<Department> depts();

}
